Skip to content

Calendar Update#475

Merged
JoeProgrammer88 merged 7 commits intomainfrom
MonthlyEventList
Mar 11, 2026
Merged

Calendar Update#475
JoeProgrammer88 merged 7 commits intomainfrom
MonthlyEventList

Conversation

@JoeProgrammer88
Copy link
Copy Markdown
Member

Closes #466

Summary

Calendar is updated to use month and list view. On mobile devices (small screen sizes), the list view is shown by default. On larger screens, the month view is shown by default. Month view has a tooltip on hover over to see the details of the events. The events remain clickable and pop up the event details model

Copilot Summary

This pull request updates the PC2/Views/Events/Index.cshtml file to improve the usability and appearance of the event calendar, especially for mobile users and for displaying event titles with HTML formatting. The main changes include responsive design improvements, enhanced event rendering, and better accessibility for event information.

Responsive and UI Improvements:

  • The calendar now automatically switches to a list view (listMonth) on mobile devices and retains the grid view (dayGridMonth) for larger screens. The toolbar layout is also adjusted based on device size for better usability.
  • The event color styles are updated to ensure sufficient contrast by explicitly setting the text color for both pc2-event and county-event classes.
  • The calendar container now uses the full width of the page (col-12), improving layout on all devices.

Event Rendering and Accessibility:

  • Custom event rendering is improved: HTML in event titles is now rendered correctly in both list and grid views, and link clicks within event titles are prevented from navigating away, ensuring the modal opens as intended.
  • Bootstrap tooltips are added to events in the month view, displaying the full event title on hover for better accessibility.
  • The custom eventContent renderer is removed in favor of using eventDidMount for more flexible and reliable rendering. [1] [2]

Minor Cleanups:

  • The event modal logic is simplified, and some redundant code is removed for clarity.
  • The noEventsText property is set to display a friendly message when there are no events in the current month.

JoeProgrammer88 and others added 7 commits March 4, 2026 09:40
Refactored the FullCalendar script and initialization code into a Razor @section Scripts block for proper script injection in ASP.NET Core views. This change improves code organization and maintainability without altering calendar functionality. Indentation and formatting were also improved for readability.
Refactor FullCalendar setup to auto-switch to list view on mobile and simplify header. Restrict custom event rendering to month grid view. Add "No events this month" message. Update layout for full-width calendar and move legend for better responsiveness. Minor formatting and CSS comment fixes.
Updated CSS to allow word wrapping for event titles in the month grid. Refactored FullCalendar eventContent to provide custom rendering for all views, using safeHtml for titles when available. Enhanced readability and consistency across month, list, and time grid views.
Enhance the appearance of custom events by setting explicit text color for .pc2-event and .county-event classes. Refine month grid event layout using flexbox, better spacing, and improved word wrapping for event titles to ensure clarity and prevent layout issues.
Simplify FullCalendar event rendering by removing custom CSS and the eventContent function. Switch to eventDidMount to allow HTML in event titles and ensure proper click handling. Remove "Week" and "Day" views from the calendar, leaving only "Month" and "List" views. This streamlines the code and improves event title display and modal behavior.
Improves event visibility by showing a tooltip with the full event
title on hover in the month (dayGridMonth) view. This helps users
see long or truncated event names more easily.
@JoeProgrammer88 JoeProgrammer88 merged commit e1ae398 into main Mar 11, 2026
1 check passed
@JoeProgrammer88 JoeProgrammer88 deleted the MonthlyEventList branch March 11, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request] - Show list of events instead of a monthly calendar

1 participant